<%@page import="com.wanmait.hotelManage.vo.Car"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%
String path=request.getContextPath();
Double price=(Double)request.getAttribute("price");
%>
<jsp:include page="/manage/inc/header.jsp"/>
 <jsp:include page="/manage/inc/menu.jsp"/> 
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="<%=path%>/manage/index.jsp">首页</a><span class="crumb-step">&gt;</span><span>早餐价格管理</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form action="<%=path %>/manage/CarServlet?action=update1" method="post" id="myform" name="myform">
                    <table class="insert-tab" width="100%">
                        <tbody>
                        <%
                        if(price!=null){
                        
                        %>
                            <tr>
                                <th><i class="require-red">*</i>价格：</th>
                                <td>
                                    <input class="common-text required" id="title" name="title" size="50" value="<%=price %>" type="text">
                                </td>
                            </tr>
                            <%
                        }
                            %>
                           <tr>
                                <th><i class="require-red">*</i>更改价格：</th>
                                <td>
                                    <input class="common-text required" id="price" name="price" size="50" value="" type="text"><span id="spanid"></span>
                                </td>
                            </tr>
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn-primary btn6 mr10" id="sbmtn" value="提交" type="button">
                                </td>
                            </tr>
                        </tbody></table>
                </form>
            </div>
        </div>

    </div>
    <!--/main-->
</div>
 <jsp:include page="/manage/inc/footer.jsp"/> 
<script>
$(function(){
	$("#title").click(function(){
        $("#title").attr("disabled","disabled");
    })
	})
</script>
<script>
$(function(){
	$("#sbmtn").click(function(){
		var price=$("#price").val();
		var patt=/^[0-9]*$/;
		if(patt.test(price)){
			$("#spanid").html("");
		}else{
			$("#spanid").html("不是数字或者为空");
			return false;
		}
		$("#myform").submit();
	})
})
</script>